<?php $articleObj=(new Zmsun\Copen\TopPackage("zm345.open.enterpr",new Zmsun\Copen\OpenLib($this->serviceManager->get("Database"),$this->serviceManager->get("DBTablePrefix"))))->article;$errorStr='';if(!filter_has_var(INPUT_POST,'ids')||!is_array($_POST['ids'])||empty($_POST['ids'])){$errorStr="参数错误，删除失败";}if(!$errorStr){$articleDel=$articleObj->articlesDelete->setIds($_POST['ids']);$errorStr=$articleDel->exec();if($errorStr['status']=='error'){$errorStr=$errorStr['error_msg'];}else{$errorStr="";}}if($errorStr){echo json_encode(['status'=>'error','data'=>['msg'=>$errorStr],]);}else{echo json_encode(['status'=>'ok','data'=>['msg'=>$errorStr],]);}?>